/**
 * Created by Wing on 2017/5/24.
 */
/*个人首页的JS*/
var inputFile = function () {
    $('input[type=file]').trigger('click');
}
var selectedFile = function (input) {
    var formData = new FormData($("#fileForm")[0]);
    console.log(input.files);
    console.log(formData);
    $.ajax({
        url: '/memorypalace/import/uploadtxt.action' ,
        type: 'POST',
        data: formData,
        async: false,
        cache: false,
        contentType: false,
        processData: false,
        success: function (returndata) {
            console.log("成功上传");
        },
        error: function (returndata) {
            console.log("失败上传");

        }
    });
}